package com.incar.chuxing.activity;

import android.content.Intent;
import android.widget.TextView;

import com.incar.chuxing.R;
import com.incar.chuxing.base.BaseActivity;
import com.incar.chuxing.utils.StatusBarUtil;
import com.incar.chuxing.utils.TimeUtils;

import butterknife.BindView;
import butterknife.OnClick;

public class MsgDetailActivity extends BaseActivity {
    @BindView(R.id.mes_detail_date)
    TextView mesDetailDate;
    @BindView(R.id.mes_detail_content)
    TextView mesDetailContent;
    @BindView(R.id.title_name)
    TextView title_name;
    private String time;
    private String content;




    @Override
    public int getLayoutId() {
        return R.layout.activity_mes_detail;
    }

    @Override
    public void initData() {
        Intent intent = getIntent();
        time = intent.getStringExtra("date");
        content = intent.getStringExtra("content");
    }

    @Override
    public void initView() {
        title_name.setText("通知消息");
        mesDetailDate.setText(TimeUtils.getFormatDate(time, "MM-dd HH:mm"));
        mesDetailContent.setText(content);
    }
    @OnClick(R.id.title_back)
    public void onClick() {
        finish();
    }

}
